﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.SqlClient;
using Viewmodel;

namespace DAL
{
    public class ZuijingjexiaoDAL
    {
        public static DataTable jiexiaochaxuen()
        {
            string sql = string.Format(@"select  s.Img, yu.Toxiang, y.AdministratorYH,
           yu.Address,y.Cishu,s.Shoppingming,s.Price,s.Jiezhishijian,y.Honoree
           from dbo.Yuengo y,dbo.Yuangong yu,dbo.Shopping s where  yu.AdministratorYH = y.AdministratorYH 
             and s.ShoppingID = y.ShoppingID and y.Condition = '已揭晓（中奖）'");
            return DBHelper.Instance().GetDataTableBySql(sql);
        }
    }
}
